package com.hasity;



import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.Environment;

@MapperScan("com.hasity")
@Slf4j
@SpringBootApplication
public class WikiworkspaceApplication {

    public static void main(String[] args) {
        // SpringApplication.run(WikiworkspaceApplication.class, args);
      SpringApplication app = new SpringApplication(WikiworkspaceApplication.class);
        Environment env = app.run(args).getEnvironment();

        log.info("启动成功!!");
        log.info("地址: \t http://127.0.0.1:{}", env.getProperty("server.port"));
    }

}
